<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fmtTag</title>
</head>
<body>

<fmt:setLocale value="fr_fr"/>
<fmt:formatNumber value="123456789.012"/><br/> <!-- 123 456 789,012 -->
<fmt:setLocale value="zh_cn"/>
<fmt:formatNumber value="123456789.012"/><br/> <!-- 123,456,789.012 -->
<fmt:setLocale value="de_de"/>
<fmt:formatNumber value="123456789.012"/><br/> <!-- 123.456.789,012 -->

<fmt:setLocale value="zh_cn"/>
<fmt:formatNumber value="0.3" type="number"/><br /> <!-- 0.3 -->
<fmt:formatNumber value="0.3" type="currency"/><br /> <!-- ￥0.30 -->
<fmt:formatNumber value="0.3" type="percent"/><br /> <!-- 30% -->

<fmt:setLocale value="zh_cn"/>
<fmt:formatNumber value="0.3" type="currency"/><br /> <!-- ￥0.30 -->
<fmt:setLocale value="en_Us"/>
<fmt:formatNumber value="0.3" type="currency"/><br /> <!-- $0.30 -->

<fmt:setLocale value="zh_cn"/>
<fmt:formatNumber value="0.3" type="currency" currencySymbol="#"/><br /> <!-- #0.30 -->
<fmt:setLocale value="en_Us"/>
<fmt:formatNumber value="0.3" type="currency" currencySymbol="#"/><br /> <!-- #0.30 -->

<fmt:formatNumber value="12.31" pattern=".0000"/><br/> <!-- 12.3100 -->
<fmt:formatNumber value="1234" pattern="###.##E0"/><br/> <!-- 1.234E3 -->

</body>
</html>